package com.cash.channel.svc.service.api;

import com.cash.channel.api.constant.Constant;
import com.cash.channel.api.exception.CashChannelException;
import com.cash.channel.api.model.ApiRequestModel;
import com.cash.channel.api.model.ApiResponseModel;
import com.cash.channel.api.model.response.UserVerifyResponse;
import com.cash.channel.api.service.BaseApi;
import com.cash.channel.svc.service.base.RepaySubmit;
import com.cash.channel.svc.service.base.UserVerify;
import com.cash.channel.svc.util.ServiceUtils;
import org.springframework.stereotype.Service;

@Service("userVerify")
public class CJH000011 implements BaseApi<UserVerifyResponse> {

    @Override
    public ApiResponseModel<UserVerifyResponse> doProcess(ApiRequestModel apiRequestModel) throws CashChannelException {
        UserVerify userVerify = ServiceUtils.getBean(apiRequestModel.getInterfaceType()+ Constant.SERVICE.活体校验, UserVerify.class);
        return userVerify.doUserVerify(apiRequestModel);
    }

}
